package net.javlov;

public class FixedLearningRate implements LearningRate {

	protected double rate;
	
	public FixedLearningRate(double rate) {
		this.rate = rate;
	}
	
	@Override
	public <T> double get(State<T> s) {
		return rate;
	}

	@Override
	public <T> double get(State<T> s, Option o) {
		return rate;
	}

	@Override
	public void init() {}

	@Override
	public <T> void visit(State<T> s) {}

	@Override
	public <T> void visit(State<T> s, Option o) {}

}
